<?php
final class inSession extends inDirector {

	public function _set( $relier = null ) {
		if ( $relier instanceof User ) {
			Session::set( 'user', $relier ) ;
		} else {
			halt( 'set session error' ) ;
		}
		return $relier ;
	}

	public function _get( $relier = null ) {
		$user = Session::get( 'user' ) ;
		$result = '' ;
		if ( $user instanceof User ) {
			$result = $user ;
		}
		return $result ;
	}

	public function _clear( $relier = null ) {
		Session::clear( 'user' ) ;
	}

	public function _delete( $relier = null ) {
		Session::set( 'user', null ) ;
	}
}